﻿
function LoginCtrl($scope,$browser){ 
	$scope.newverifycode = function(){ 
		$scope._time = (new Date()).getTime().toString();
	};
	
	var error = $browser.cookies()['error'];
	if (error && error != "") {
        switch(error){
            case "login0000": alert("未填写验证码"); break;
			case "login0001": alert("验证码不正确"); break;
			case "login0004": alert("账号或者密码不正确"); break;
			default : alert("填写的验证码不正确"); break;
        }
		
		$browser.cookies('error');
		
    };
 
}